<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sysParameterMasterBean.id}"/>
		<f:event type="preRenderView" listener="#{sysParameterMasterBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sys Parameter Master"/>

	<ui:define name="header">
		Sys Parameter Master
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sysParameterMasterBean.id}">
				Edit existing Sys Parameter Master
			</c:when>
			<c:otherwise>
				Create a new Sys Parameter Master
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sysParameterMasterBeanSysParameterMasterParamNo" value="Param No:"/>
				<h:panelGroup>
					<h:inputText id="sysParameterMasterBeanSysParameterMasterParamNo" required="true" value="#{sysParameterMasterBean.sysParameterMaster.paramNo}"/>
					<h:message for="sysParameterMasterBeanSysParameterMasterParamNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sysParameterMasterBeanSysParameterMasterSysParameterGroup" value="Sys Parameter Group:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysParameterGroupBean.converter}" id="sysParameterMasterBeanSysParameterMasterSysParameterGroup" value="#{sysParameterMasterBean.sysParameterMaster.sysParameterGroup}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysParameterGroupBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sysParameterMasterBeanSysParameterMasterSysParameterGroup" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysParameterMasterBeanSysParameterMasterParamCode" value="Param Code:"/>
				<h:panelGroup>
					<h:inputText id="sysParameterMasterBeanSysParameterMasterParamCode" maxLength="50" value="#{sysParameterMasterBean.sysParameterMaster.paramCode}"/>
					<h:message for="sysParameterMasterBeanSysParameterMasterParamCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysParameterMasterBeanSysParameterMasterParamDescr" value="Param Descr:"/>
				<h:panelGroup>
					<h:inputText id="sysParameterMasterBeanSysParameterMasterParamDescr" maxLength="300" value="#{sysParameterMasterBean.sysParameterMaster.paramDescr}"/>
					<h:message for="sysParameterMasterBeanSysParameterMasterParamDescr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysParameterMasterBeanSysParameterMasterSysUserParameters" value="Sys User Parameters:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sysParameterMasterBean.sysParameterMaster.sysUserParameters}"/>
					<h:dataTable id="sysParameterMasterBeanSysParameterMasterSysUserParameters" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys User Account"/>
							</f:facet>
							<h:link outcome="/sysUserParameter/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysUserAccount" value="#{forgeview:display(_item.sysUserAccount)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysUserAccountBean.converter}" id="sysUserParameterBeanAddSysUserAccount" value="#{sysUserParameterBean.add.sysUserAccount}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysUserAccountBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sysUserParameterBeanAddSysUserAccount" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Param String Val"/>
							</f:facet>
							<h:link outcome="/sysUserParameter/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemParamStringVal" value="#{_item.paramStringVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysUserParameterBeanAddParamStringVal" maxLength="50" value="#{sysUserParameterBean.add.paramStringVal}"/>
								<h:message for="sysUserParameterBeanAddParamStringVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Param Number Val"/>
							</f:facet>
							<h:link outcome="/sysUserParameter/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemParamNumberVal" value="#{_item.paramNumberVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysUserParameterBeanAddParamNumberVal" value="#{sysUserParameterBean.add.paramNumberVal}"/>
								<h:message for="sysUserParameterBeanAddParamNumberVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sysUserParameterBean.added)}" id="sysParameterMasterBeanSysParameterMasterSysUserParametersAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sysUserParameterBean.add.sysParameterMaster}" value="#{sysParameterMasterBean.sysParameterMaster}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysParameterMasterBeanSysParameterMasterSysApplicationParameters" value="Sys Application Parameters:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sysParameterMasterBean.sysParameterMaster.sysApplicationParameters}"/>
					<h:dataTable id="sysParameterMasterBeanSysParameterMasterSysApplicationParameters" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Application"/>
							</f:facet>
							<h:link outcome="/sysApplicationParameter/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSysApplication" value="#{forgeview:display(_item.sysApplication)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysApplicationBean.converter}" id="sysApplicationParameterBeanAddSysApplication" value="#{sysApplicationParameterBean.add.sysApplication}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysApplicationBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sysApplicationParameterBeanAddSysApplication" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Param String Val"/>
							</f:facet>
							<h:link outcome="/sysApplicationParameter/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemParamStringVal" value="#{_item.paramStringVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysApplicationParameterBeanAddParamStringVal" maxLength="50" value="#{sysApplicationParameterBean.add.paramStringVal}"/>
								<h:message for="sysApplicationParameterBeanAddParamStringVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Param Number Val"/>
							</f:facet>
							<h:link outcome="/sysApplicationParameter/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemParamNumberVal" value="#{_item.paramNumberVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sysApplicationParameterBeanAddParamNumberVal" value="#{sysApplicationParameterBean.add.paramNumberVal}"/>
								<h:message for="sysApplicationParameterBeanAddParamNumberVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sysApplicationParameterBean.added)}" id="sysParameterMasterBeanSysParameterMasterSysApplicationParametersAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sysApplicationParameterBean.add.sysParameterMaster}" value="#{sysParameterMasterBean.sysParameterMaster}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysParameterMasterBeanSysParameterMasterSdCustParameters" value="Sd Cust Parameters:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sysParameterMasterBean.sysParameterMaster.sdCustParameters}"/>
					<h:dataTable id="sysParameterMasterBeanSysParameterMasterSdCustParameters" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sd Cust"/>
							</f:facet>
							<h:link outcome="/sdCustParameter/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSdCust" value="#{forgeview:display(_item.sdCust)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sdCustBean.converter}" id="sdCustParameterBeanAddSdCust" value="#{sdCustParameterBean.add.sdCust}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdCustBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sdCustParameterBeanAddSdCust" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Param String Val"/>
							</f:facet>
							<h:link outcome="/sdCustParameter/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustParamStringVal" value="#{_item.custParamStringVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustParameterBeanAddCustParamStringVal" maxLength="500" value="#{sdCustParameterBean.add.custParamStringVal}"/>
								<h:message for="sdCustParameterBeanAddCustParamStringVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust Param Number Val"/>
							</f:facet>
							<h:link outcome="/sdCustParameter/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustParamNumberVal" value="#{_item.custParamNumberVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustParameterBeanAddCustParamNumberVal" value="#{sdCustParameterBean.add.custParamNumberVal}"/>
								<h:message for="sdCustParameterBeanAddCustParamNumberVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdCustParameterBean.added)}" id="sysParameterMasterBeanSysParameterMasterSdCustParametersAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdCustParameterBean.add.sysParameterMaster}" value="#{sysParameterMasterBean.sysParameterMaster}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysParameterMasterBeanSysParameterMasterSdCustUserParameters" value="Sd Cust User Parameters:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{sysParameterMasterBean.sysParameterMaster.sdCustUserParameters}"/>
					<h:dataTable id="sysParameterMasterBeanSysParameterMasterSdCustUserParameters" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sd Cust User Account"/>
							</f:facet>
							<h:link outcome="/sdCustUserParameter/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="forgeviewdisplayitemSdCustUserAccount" value="#{forgeview:display(_item.sdCustUserAccount)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sdCustUserAccountBean.converter}" id="sdCustUserParameterBeanAddSdCustUserAccount" value="#{sdCustUserParameterBean.add.sdCustUserAccount}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdCustUserAccountBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="sdCustUserParameterBeanAddSdCustUserAccount" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust User Param String Val"/>
							</f:facet>
							<h:link outcome="/sdCustUserParameter/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustUserParamStringVal" value="#{_item.custUserParamStringVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustUserParameterBeanAddCustUserParamStringVal" maxLength="500" value="#{sdCustUserParameterBean.add.custUserParamStringVal}"/>
								<h:message for="sdCustUserParameterBeanAddCustUserParamStringVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cust User Param Number Val"/>
							</f:facet>
							<h:link outcome="/sdCustUserParameter/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCustUserParamNumberVal" value="#{_item.custUserParamNumberVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdCustUserParameterBeanAddCustUserParamNumberVal" value="#{sdCustUserParameterBean.add.custUserParamNumberVal}"/>
								<h:message for="sdCustUserParameterBeanAddCustUserParamNumberVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdCustUserParameterBean.added)}" id="sysParameterMasterBeanSysParameterMasterSdCustUserParametersAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdCustUserParameterBean.add.sysParameterMaster}" value="#{sysParameterMasterBean.sysParameterMaster}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sysParameterMasterBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sysParameterMasterBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sysParameterMasterBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sysParameterMasterBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>